package com.logicwin.aibala.detailPackActivity;

import com.logicwin.aibala.R;

import android.app.Activity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;
import android.widget.ImageView;

public class testActivity extends Activity{
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		
		setContentView(R.layout.test_layout);

		Button btnRet = (Button) this.findViewById(R.id.test_btn_ret);
		btnRet.setOnClickListener(new OnClickListener(){
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				finish();
			}			
		});
		// set changable view
		ImageView imageView = (ImageView) this.findViewById(R.id.test_image);

		Intent intent = this.getIntent();
		int resId = intent.getExtras().getInt("resId");
		imageView.setImageResource(resId);
		//Resources res = this.getResources();
	}
}
